﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CToolsWin
{
    public partial class CommonMenu : UserControl
    {
        public CommonMenu()
        {
            InitializeComponent();
        }

        private void TSMMain_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new Main());
        }

        private void TSMCrawler_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new Network.Crawler());
        }

        private void TSMRequest_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new Network.Requester());
        }

        //private void TSMFile_Click(object sender, EventArgs e)
        //{
        //    this.FindForm().ShowForm(new Main());
        //}

        private void TSMFolderCompare_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new Files.FolderTree());
        }

        private void TSMSQLConnStr_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new DB.SQLConnStr());
        }

        private void TSMSQLInfo_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new DB.SQLInfo());
        }

        private void TSMFileMD5Encrypt_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new Files.FileMD5Encrypt());
        }

        private void TSMTaskSchedule_Click(object sender, EventArgs e)
        {

        }

        private void TSMTXTFileMerge_Click(object sender, EventArgs e)
        {
            this.FindForm().ShowForm(new Files.TXTFileMerge());
        }
    }
}
